package com.cyl.XmlDemo.entity;

import java.util.Iterator;
import java.util.Vector;

public class Room {
	
	private static Room instance = new Room();
	private Vector<String> user = new Vector<String>();
	
	private Room(){
	}
	
	
	public static Room getInstance(){
		return instance;
	}


	public Vector<String> getUserList() {
		return user;
	}

	public void put(String uniqueName){
		user.add(uniqueName);
	}
	
	public void remove(String uniqueName){
		user.remove(uniqueName);
	}
	
	public Integer size(){
		return user.size();
	}
	
	public Iterator<String> iterator(){
		return user.iterator();
	}
	
	public boolean contains(String uniqueName){
		return user.contains(uniqueName);
	}
}
